package com.atguigu.feign;

import com.atguigu.domain.User;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * UserClientFallback
 *
 * @Author: 马伟奇
 * @CreateTime: 2021-03-05
 * @Description:
 */
@Component
public class UserClientFallback implements UserClient{
    @Override
    public User findUserById(Integer id) {
        User user = new User();
        user.setUsername("开启服务熔断");
        return user;
    }
}